package com.dx.demo.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dx.demo.bean.Dept;
import com.dx.demo.dao.DaoImpl;

@Service("deptService")
public class DeptServiceImpl {

	@Resource(name="dao")
	private DaoImpl dao;
	
	public List<Dept> getDeptList(){
		return (List<Dept>) dao.findForList("DeptMapper.getDeptList", null);
	}
	
}
